<meta name="csrf-token" content="{{ csrf_token() }}">
<link rel="stylesheet" type="text/css" href="{{ URL::asset('fenhome/fenhomeheader.css') }}" />
<link rel="shortcut icon" type="image/x-icon" href="{{URL::asset('handan/images/logo-icon.png')}}" />
<script type="text/javascript" src="{{ URL::asset('public_js/jquery-1.8.3.min.js') }}"></script>
<script src="{{ URL::asset('js/layer/layer.js') }}"></script>
<title>EAI交易圈</title>
<!-- HTML部分 -->
<div id="header">
    <div class="header">
        <div class="header_l l">
            <div class="header_lo l"><img src="{{ URL::asset('fenhome/image/logo.png') }}"/></div>
            <nav>
                <ul>
                    <li><a href="{{url::asset('/')}}">首页</a><i></i></li>
                    {{--<li><a href="{{url::asset('/hd')}}">行情</a><i></i></li>--}}
                    <li><a href="{{url::asset('/qianlibang')}}" class="">分析师</a></li>
                <!-- <li><a href="{{url::asset('/active')}}">分析师</a><i></i></li> -->
                    <li><a href="{{url::asset('/news')}}">基本面</a><i></i></li>
                    <li><a href="{{url::asset('/pay')}}">充值</a></li>
                    <li><a href="javascript:;">应用</a><i></i></li>
                    <li><a href="{{url::asset('/recomm')}}">推荐榜 <img src="{{ URL::asset('recommend/images/newtitile.png') }}" alt="" style="vertical-align: top;"> </a><i></i></li>
                </ul>
            </nav>
        </div>
        @if (session('eai'))
            <div class="header_r r" id="header_r">
                <div class='img'>
                    <a href="javascript:;">
                    <!-- {{url::asset('/home?type=user')}}  A标签点击个人中心路径跳转 -->
                        @if (session('eai'))
                            <div class="header_img">
                                <img src="{{session('eai')['photo']}}" alt="" id="topheaderphoto" >
                            </div>
                        @else
                            <div class="header_img">
                                <img src="{{URL::asset('/ucenter/images/head.png')}}" alt="" id="topheaderphoto">
                            </div>
                        @endif
                        <span>{{ session('eai')['username'] }}</span>
                        <img src="{{URL::asset('fenhome/image/sanjiao.png')}}" alt="" id="sanjiao"/>
                    </a>
                </div>
                <!-- 下拉框 -->
                <div class="j_select_xl j_select">
                    <ul>
                        <li class="active"><a href="{{url::asset('/home?type=user')}}">我的主页</a></li>
                        <li><a href="{{ url('/authenticate')}}">我的资料</a></li>
                        <!-- <li><a href="{{ url('/cash') }}">我要提现</a></li> -->
                        <li><a href="{{url('loginout')}}">退出登录</a></li>
                    </ul>
                </div>
            </div>
        @else
            <div class="header_r r" style="margin: 0px;">
                <a href="{{url('/login')}}" style="line-height:70px;margin-right: 20px; padding: 0 0px 3px 30px;font-size:16px;color:#fff;">登录</a>
                <a href="{{url('/register')}}" style="line-height:70px;padding: 0 2px 3px;font-size:16px;color:#fff;">注册</a>
            </div>
        @endif
    </div>
</div>
<script src="{{ URL::asset('public_js/jquery-3.2.1.min.js') }}"></script>
<script>
    $(function(){
        $('#header_r ').click(function(){
            if($('.j_select').is(':hidden')){//如果当前隐藏
                $('.j_select').show();//那么就显示div
            }else{//否则
                $('.j_select').hide();//就隐藏div
            }
        });
        // 禁止缩放网页
        $(document).ready(function () {
            // chrome 浏览器直接加上下面这个样式就行了，但是ff不识别
            $('body').css('zoom', 'reset');
            $(document).keydown(function (event) {
              if ((event.ctrlKey === true || event.metaKey === true)
                && (event.which === 61 || event.which === 107
                    || event.which === 173 || event.which === 109
                    || event.which === 187  || event.which === 189))
               {
                   event.preventDefault();
               }
            });
            $(window).bind('mousewheel DOMMouseScroll', function (event) {
                if (event.ctrlKey === true || event.metaKey) {
                   event.preventDefault();
                }
            });
        });
    })
</script>
